package sn.ugb.cours.jee.zd.hibernate.dao;
import java.io.Serializable;
public class Cours implements Serializable {
/**
*
*/
private static final long serialVersionUID = -7280802827752488700L;
private Integer id;
private String shortdesc;
private String longdesc;
private String pageurl;
public Cours(Integer id, String shortdesc, String longdesc, String pageurl) {
this.id = id;
this.shortdesc = shortdesc;
this.longdesc = longdesc;
this.pageurl = pageurl;
}
public Cours(String shortdesc, String longdesc, String pageurl) {
this.id = id;
this.shortdesc = shortdesc;
this.longdesc = longdesc;
this.pageurl = pageurl;
}
public Cours() {
}
public Integer getId() {
return this.id;
}
public void setId(Integer id) {
this.id = id;
}
public String getShortdesc() {
return this.shortdesc;
}
public void setShortdesc(String shortdesc) {
this.shortdesc = shortdesc;
}
public String getLongdesc() {
return this.longdesc;
}
public void setLongdesc(String longdesc) {
this.longdesc = longdesc;
}
public String getPageurl() {
return this.pageurl;
}
public void setPageurl(String pageurl) {
this.pageurl = pageurl;
}
@Override
public String toString() {
StringBuffer stringBuffer = new StringBuffer("Cours : ");
stringBuffer.append(shortdesc);
return stringBuffer.toString();
}
}